class CreateAccountFlows < ActiveRecord::Migration[5.0]
  def change
    create_table :account_flows do |t|
	t.integer :user_id
    	t.numeric :amount
    	t.timestamp :trade_at
    	t.integer :trade_year
    	t.integer :trade_month
    	t.integer :trade_day
    	t.integer :trade_type
    	t.string :flow_id
    	t.numeric :balance
      t.timestamps
    end
  end
end
